#define _CRT_SECURE_NO_WARNINGS 1
#include"slist.h"
int main()
{
	SListNode* plist = NULL;
	SListPushBack(&plist,1);
	SListPushBack(&plist,2);
	SListPushBack(&plist,3);
	SListPushBack(&plist,4);
	SListPrint(plist);
	SListDestroy2(&plist);
	SListPrint(plist);
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPopFront(&plist);
	SListInsertAfter(SListFind(plist, 3),5);
	SListEraseAfter(SListFind(plist, 2));
	SListPrint(plist);
	SListDestroy1(&plist);
	SListPrint(plist);
	return 0;
}